package com.tjmc.nsia.core.dao.entity;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @date 2024/07/10
 */
@TableName("nsia_exam_submit")
public class NsiaExamSubmit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    private String examTitle;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private JSONObject replys;

    private String score;

    private Long userId;

    private Integer examId;

    private LocalDateTime submitTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getExamTitle() {
        return examTitle;
    }

    public void setExamTitle(String examTitle) {
        this.examTitle = examTitle;
    }

    public JSONObject getReplys() {
        return replys;
    }

    public void setReplys(JSONObject replys) {
        this.replys = replys;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public LocalDateTime getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(LocalDateTime submitTime) {
        this.submitTime = submitTime;
    }

    @Override
    public String toString() {
        return "NsiaExamSubmit{" +
        "id=" + id +
        ", username=" + username +
        ", examTitle=" + examTitle +
        ", replys=" + replys +
        ", score=" + score +
        ", userId=" + userId +
        ", examId=" + examId +
        ", submitTime=" + submitTime +
        "}";
    }
}
